<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>
    //1.全世界的每个文字或者字符都有对应的编码。
    //0-9    unicode编码   48-57
    //A-Z    unicode编码   65-90
    //a-z    unicode编码   97-122
    var n1 = 'zhangsan';
    var n2 = 'lisi';
    var n3 = 'wangwu';
    console.log(n1 > n2); //true
    console.log(n2 > n3); //false


    //比较的是unicode编码。

    var num1 = '153';
    var num2 = '1450';

    console.log(num1 > num2); //true
</script>